﻿using System;
using System.IO;

namespace Moonlite.Languages.Andromeda.Implementation
{
    internal sealed class AndromedaParserFactory : AbstractAndromedaParserFactory
    {
        private void ParseAndFillNativeParserErrors(Parser parser, AndromedaParser parserMetadata)
        {
            // TODO: implement this.
        }

        public override IAndromedaParser CreateParserAndParse(Stream stream)
        {
            Parser parser = new Parser(new Scanner(stream));
            parser.Parse();
            AndromedaParser parserMetadata = new AndromedaParser();
            ParseAndFillNativeParserErrors(parser, parserMetadata);
            return parserMetadata;
        }
    }
}
